<?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');

class Wireframe_model extends CI_Model
{
	
	public function __construct()
	{
		parent::__construct();
	}
	
	function users_getall($userid)
	{
	   
		/*$users = $this->db->get('users',$userid);
	    return $users->result();*/
	}
	
	public function get_user_details($id)
	{
		$this->db->select('users.*,users_groups.*');
		$this->db->from('users');
		$this->db->where('users.id = '.$id);
		$this->db->join('users_groups','users.id = users_groups.user_id');
		return $this->db->get()->row_array();
	}
	function userdetails($id)
	{
		$this->db->select('users.*');
    	$this->db->from('users');
    	$this->db->where('users.id =',$id);
		$userdetails = $this->db->get();
		return $userdetails->result();
	}
	
	function add_wireframe($data,$insert)
	{
		$this->db->insert('tag_picture',$insert);
    }
	
	function update_wireframe($insert,$heading)
	{
		$this->db->update('tag_picture',$insert,array('id' => $heading ));
    }
	
	function delete_wireframe($heading)
	{
		$this->db->delete('tag_picture',array('id' => $heading ));
    }
	function getpicturetag()
	{
		$this->db->get('tag_picture');
	}
	
	
}
